package org.example.java8.date;

import java.time.LocalDate;
import java.time.Period;

public class PeriodTest {
    public static void main(String[] args) {
        Period period = Period.between(LocalDate.of(2014, 1, 1), LocalDate.of(2020, 7, 16));
        System.out.println(period.getYears());
        System.out.println(period.getMonths());
        System.out.println(period.getDays());
    }
}
